package com.jbit.examSystem.service.impl;

import com.jbit.examSystem.dao.ClassDao;
import com.jbit.examSystem.pojo.Class;
import com.jbit.examSystem.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;

import java.util.List;

@Service
public class ClassServiceImpl implements ClassService {
    @Autowired
    private ClassDao classDao;

    @Override
    public List<Class> getAllClass(Integer teacherId) {
        List<Class> classes = classDao.getAllClass(teacherId);
        return classes;
    }

    @Override
    public List<Class> getClassByGradeId(Integer gradeId) {
        List<Class> classes = classDao.getClassByGradeId(gradeId);
        return classes;
    }
}
